package com.rickie.model.entities;

import com.alibaba.cola.domain.Entity;
import lombok.Data;

import java.util.Date;

/**
 * @author rickie
 * @version 1.0.0
 * @ClassName Leg.java
 * @Description 行程段
 * @createTime 2021年06月13日 16:47:00
 */
@Data
@Entity
public class Leg {
    /**
     * 航班号
     */
    private String voyageNumber;
    /**
     * 装载地址
     */
    private String loadLocation;
    /**
     * 卸载地址
     */
    private String unloadLocation;
    /**
     * 装载时间
     */
    private Date loadTime;
    /**
     * 卸载时间
     */
    private Date unloadTime;

    public Leg(String voyageNumber, String loadLocation, String unloadLocation,
               Date loadTime, Date unloadTime){
        this.voyageNumber = voyageNumber;
        this.loadLocation = loadLocation;
        this.unloadLocation = unloadLocation;
        this.loadTime = loadTime;
        this.unloadTime = unloadTime;
    }
}
